home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 44
/
Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso
/
-in_the_mag-
/
workbench
/
netkeys
/
src
/
emodules
/
devices
/
pronet.e
next >
Wrap
Text File
|
1999-07-28
|
881b
|
43 lines
OPT MODULE
OPT EXPORT
MODULE 'exec/io', 'exec/ports'
CONST PNB_ERRORSTRING = 0, PNF_ERRORSTRING = 1
CONST PNDERR_PORTEXISTS = -94,
PNDERR_DRIVERTROUBLE = -96,
PNDERR_UNIT_NOT_DEFINED = -97,
-> This error can only occur after CMD_WRITE:
PNDERR_DESTINATION_GONE = -98
-> The ProNET IO Request:
OBJECT pnrequest
ioreq:io
msgport:PTR TO mp
netsourceport:INT -> UNSIGNED
netdestport:INT -> UNSIGNED
data, length
ENDOBJECT
-> You can use this in netsourceport:
CONST PNP_NEXTFREE = -2
/*
* Following is data for ProNET driver developers
*/
-> The ProNET Driver Data Structure:
OBJECT pndrvdata
readsignalbit:CHAR, pad0:CHAR
readquery, readflush, read, write, exit
ENDOBJECT
-> Return codes (magic cookies) for the driver's Init routine:
CONST PNDRVERR_NO_MEMORY = -1 -> no memory
CONST PNDRVERR_WRONG_ARGS = -2 -> wrong .config arguments